﻿package fj.utils
{	
	public class FJParse
	{
		public static function url( s:String ):Array
		{
			var array:Array = new Array();
			var indexParsing:Number;
			var lastIndex:Number
			indexParsing = s.indexOf( "/" );
			lastIndex = indexParsing+1;
			
			while( s.indexOf( "/", lastIndex )!= -1 ){
				var startIndex:Number = lastIndex;
				var endIndex:Number = s.indexOf( "/", lastIndex );
				var param:String = s.substring( startIndex, endIndex );
				lastIndex = s.indexOf( "/", lastIndex )+1
				array.push( param )
			}
			
			return array;
		}
	}
}